package com.zbkj.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 积分提现流水 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "积分提现流水")
@TableName(value = "eb_dividend_flowing_water")
@Table(value = "eb_dividend_flowing_water")
public class EbDividendFlowingWaterEntity  implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Schema(description = "主键")
    @Id(keyType = KeyType.Auto)
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商户id
     */
    @Schema(description = "商户id")
    @Column(value = "mer_id")
    @TableField(value = "mer_id")
    private Long merId;

    /**
     * 提现金额
     */
    @Schema(description = "提现金额")
    @Column(value = "withdrawal_limit")
    @TableField(value = "withdrawal_limit")
    @NotNull(message = "提现金额不能为空")
    private BigDecimal withdrawalLimit;

    /**
     * 提现聚道(0:微信,1:支付宝,2:银行卡(银联),3:paypal,4:拉卡拉,5:扫呗)
     */
    @Schema(description = "提现聚道(0:微信,1:支付宝,2:银行卡(银联),3:paypal,4:拉卡拉,5:扫呗)")
    @Column(value = "withdrawal_pipe")
    @TableField(value = "withdrawal_pipe")
    private Integer withdrawalPipe;

    /**
     * 提现时间
     */
    @Schema(description = "提现时间")
    @Column(value = "created_time")
    @TableField(value = "created_time")
    private LocalDateTime createdTime;

    /**
     * 到账时间(保留字段)
     */
    @Schema(description = "到账时间(保留字段)")
    @Column(value = "account_time")
    @TableField(value = "account_time")
    private LocalDateTime accountTime;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @Column(value = "created_by")
    @TableField(value = "created_by")
    private String createdBy;


}
